// Copyright (C) 2019 Toitware ApS.
// Use of this source code is governed by a Zero-Clause BSD license that can
// be found in the tests/LICENSE file.

class A:
  operator[]:
    return 499

class B:
  operator [ ] n:
  operator [] = n val:

class C:
  operator [ ]= n val:

main:
  a := A
  a[]
